<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>robotide.spec.xmlreaders</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="robotide-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/robotframework-ride">RIDE</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="robotide-module.html">Package&nbsp;robotide</a> ::
        <a href="robotide.spec-module.html">Package&nbsp;spec</a> ::
        Module&nbsp;xmlreaders
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="robotide.spec.xmlreaders-module.html">Module robotide.spec.xmlreaders</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno"> 1</tt>  <tt class="py-line"><tt class="py-comment">#  Copyright 2008-2009 Nokia Siemens Networks Oyj</tt> </tt>
<a name="L2"></a><tt class="py-lineno"> 2</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L3"></a><tt class="py-lineno"> 3</tt>  <tt class="py-line"><tt class="py-comment">#  Licensed under the Apache License, Version 2.0 (the "License");</tt> </tt>
<a name="L4"></a><tt class="py-lineno"> 4</tt>  <tt class="py-line"><tt class="py-comment">#  you may not use this file except in compliance with the License.</tt> </tt>
<a name="L5"></a><tt class="py-lineno"> 5</tt>  <tt class="py-line"><tt class="py-comment">#  You may obtain a copy of the License at</tt> </tt>
<a name="L6"></a><tt class="py-lineno"> 6</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L7"></a><tt class="py-lineno"> 7</tt>  <tt class="py-line"><tt class="py-comment">#      http://www.apache.org/licenses/LICENSE-2.0</tt> </tt>
<a name="L8"></a><tt class="py-lineno"> 8</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L9"></a><tt class="py-lineno"> 9</tt>  <tt class="py-line"><tt class="py-comment">#  Unless required by applicable law or agreed to in writing, software</tt> </tt>
<a name="L10"></a><tt class="py-lineno">10</tt>  <tt class="py-line"><tt class="py-comment">#  distributed under the License is distributed on an "AS IS" BASIS,</tt> </tt>
<a name="L11"></a><tt class="py-lineno">11</tt>  <tt class="py-line"><tt class="py-comment">#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</tt> </tt>
<a name="L12"></a><tt class="py-lineno">12</tt>  <tt class="py-line"><tt class="py-comment">#  See the License for the specific language governing permissions and</tt> </tt>
<a name="L13"></a><tt class="py-lineno">13</tt>  <tt class="py-line"><tt class="py-comment">#  limitations under the License.</tt> </tt>
<a name="L14"></a><tt class="py-lineno">14</tt>  <tt class="py-line"> </tt>
<a name="L15"></a><tt class="py-lineno">15</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">os</tt> </tt>
<a name="L16"></a><tt class="py-lineno">16</tt>  <tt class="py-line"> </tt>
<a name="L17"></a><tt class="py-lineno">17</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package robotide=robotide-module.html"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-0', 'robotide', 'link-0');">robotide</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Module robotide.robotapi=robotide.robotapi-module.html"><a title="robotide.robotapi" class="py-name" href="#" onclick="return doclink('link-1', 'robotapi', 'link-1');">robotapi</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">TestLibrary</tt> <tt class="py-keyword">as</tt> <tt class="py-name">RobotTestLibrary</tt> </tt>
<a name="L18"></a><tt class="py-lineno">18</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-2" class="py-name"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-2', 'robotide', 'link-0');">robotide</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Module robotide.errors=robotide.errors-module.html"><a title="robotide.errors" class="py-name" href="#" onclick="return doclink('link-3', 'errors', 'link-3');">errors</a></tt> <tt class="py-keyword">import</tt> <tt class="py-name">DataError</tt> </tt>
<a name="L19"></a><tt class="py-lineno">19</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-4" class="py-name"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-4', 'robotide', 'link-0');">robotide</a></tt><tt class="py-op">.</tt><tt id="link-5" class="py-name" targets="Method robotide.pluginapi.plugin.Plugin.publish()=robotide.pluginapi.plugin.Plugin-class.html#publish,Package robotide.publish=robotide.publish-module.html,Method robotide.publish.messages.RideMessage.publish()=robotide.publish.messages.RideMessage-class.html#publish,Method robotide.publish.publisher.Publisher.publish()=robotide.publish.publisher.Publisher-class.html#publish"><a title="robotide.pluginapi.plugin.Plugin.publish
robotide.publish
robotide.publish.messages.RideMessage.publish
robotide.publish.publisher.Publisher.publish" class="py-name" href="#" onclick="return doclink('link-5', 'publish', 'link-5');">publish</a></tt> <tt class="py-keyword">import</tt> <tt id="link-6" class="py-name" targets="Class robotide.publish.messages.RideLogException=robotide.publish.messages.RideLogException-class.html"><a title="robotide.publish.messages.RideLogException" class="py-name" href="#" onclick="return doclink('link-6', 'RideLogException', 'link-6');">RideLogException</a></tt> </tt>
<a name="L20"></a><tt class="py-lineno">20</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-7" class="py-name"><a title="robotide" class="py-name" href="#" onclick="return doclink('link-7', 'robotide', 'link-0');">robotide</a></tt> <tt class="py-keyword">import</tt> <tt id="link-8" class="py-name" targets="Package robotide.utils=robotide.utils-module.html"><a title="robotide.utils" class="py-name" href="#" onclick="return doclink('link-8', 'utils', 'link-8');">utils</a></tt> </tt>
<a name="L21"></a><tt class="py-lineno">21</tt>  <tt class="py-line"> </tt>
<a name="L22"></a><tt class="py-lineno">22</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-9" class="py-name" targets="Module robotide.spec.iteminfo=robotide.spec.iteminfo-module.html"><a title="robotide.spec.iteminfo" class="py-name" href="#" onclick="return doclink('link-9', 'iteminfo', 'link-9');">iteminfo</a></tt> <tt class="py-keyword">import</tt> <tt id="link-10" class="py-name" targets="Class robotide.spec.iteminfo.LibraryKeywordInfo=robotide.spec.iteminfo.LibraryKeywordInfo-class.html"><a title="robotide.spec.iteminfo.LibraryKeywordInfo" class="py-name" href="#" onclick="return doclink('link-10', 'LibraryKeywordInfo', 'link-10');">LibraryKeywordInfo</a></tt><tt class="py-op">,</tt> <tt class="py-name">_XMLKeywordContent</tt> </tt>
<a name="L23"></a><tt class="py-lineno">23</tt>  <tt class="py-line"> </tt>
<a name="L24"></a><tt class="py-lineno">24</tt>  <tt class="py-line"> </tt>
<a name="Spec"></a><div id="Spec-def"><a name="L25"></a><tt class="py-lineno">25</tt> <a class="py-toggle" href="#" id="Spec-toggle" onclick="return toggle('Spec');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="robotide.spec.xmlreaders.Spec-class.html">Spec</a><tt class="py-op">(</tt><tt class="py-base-class">object</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Spec-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="Spec-expanded"><a name="L26"></a><tt class="py-lineno">26</tt>  <tt class="py-line"> </tt>
<a name="Spec._init_from_specfile"></a><div id="Spec._init_from_specfile-def"><a name="L27"></a><tt class="py-lineno">27</tt> <a class="py-toggle" href="#" id="Spec._init_from_specfile-toggle" onclick="return toggle('Spec._init_from_specfile');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.spec.xmlreaders.Spec-class.html#_init_from_specfile">_init_from_specfile</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">specfile</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Spec._init_from_specfile-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Spec._init_from_specfile-expanded"><a name="L28"></a><tt class="py-lineno">28</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L29"></a><tt class="py-lineno">29</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_parse_xml</tt><tt class="py-op">(</tt><tt class="py-name">specfile</tt><tt class="py-op">)</tt> </tt>
<a name="L30"></a><tt class="py-lineno">30</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L31"></a><tt class="py-lineno">31</tt>  <tt class="py-line">            <tt class="py-comment"># TODO: which exception to catch?</tt> </tt>
<a name="L32"></a><tt class="py-lineno">32</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-string">''</tt> </tt>
</div><a name="L33"></a><tt class="py-lineno">33</tt>  <tt class="py-line"> </tt>
<a name="Spec._parse_xml"></a><div id="Spec._parse_xml-def"><a name="L34"></a><tt class="py-lineno">34</tt> <a class="py-toggle" href="#" id="Spec._parse_xml-toggle" onclick="return toggle('Spec._parse_xml');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.spec.xmlreaders.Spec-class.html#_parse_xml">_parse_xml</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">file</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Spec._parse_xml-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="Spec._parse_xml-expanded"><a name="L35"></a><tt class="py-lineno">35</tt>  <tt class="py-line">        <tt class="py-name">root</tt> <tt class="py-op">=</tt> <tt id="link-11" class="py-name"><a title="robotide.utils" class="py-name" href="#" onclick="return doclink('link-11', 'utils', 'link-8');">utils</a></tt><tt class="py-op">.</tt><tt class="py-name">DomWrapper</tt><tt class="py-op">(</tt><tt class="py-name">file</tt><tt class="py-op">)</tt> </tt>
<a name="L36"></a><tt class="py-lineno">36</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">root</tt><tt class="py-op">.</tt><tt id="link-12" class="py-name" targets="Variable robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name=robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode-class.html#name,Variable robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name=robotide.contrib.testrunner.runprofiles.CustomScriptProfile-class.html#name,Variable robotide.contrib.testrunner.runprofiles.PybotProfile.name=robotide.contrib.testrunner.runprofiles.PybotProfile-class.html#name,Variable robotide.controller.settingcontrollers.ImportController.name=robotide.controller.settingcontrollers.ImportController-class.html#name,Variable robotide.controller.settingcontrollers.MetadataController.name=robotide.controller.settingcontrollers.MetadataController-class.html#name,Variable robotide.controller.settingcontrollers.VariableController.name=robotide.controller.settingcontrollers.VariableController-class.html#name,Variable robotide.controller.stepcontrollers.ForLoopStepController.name=robotide.controller.stepcontrollers.ForLoopStepController-class.html#name,Variable robotide.controller.tags.Tag.name=robotide.controller.tags.Tag-class.html#name,Variable robotide.editor.editors.EditorPanel.name=robotide.editor.editors.EditorPanel-class.html#name,Variable robotide.publish.messages.name=robotide.publish.messages-module.html#name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-12', 'name', 'link-12');">name</a></tt> <tt class="py-op">!=</tt> <tt class="py-string">'keywordspec'</tt><tt class="py-op">:</tt> </tt>
<a name="L37"></a><tt class="py-lineno">37</tt>  <tt class="py-line">            <tt class="py-comment"># TODO: XML validation errors should be logged</tt> </tt>
<a name="L38"></a><tt class="py-lineno">38</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-string">''</tt> </tt>
<a name="L39"></a><tt class="py-lineno">39</tt>  <tt class="py-line">        <tt class="py-name">kw_nodes</tt> <tt class="py-op">=</tt> <tt class="py-name">root</tt><tt class="py-op">.</tt><tt class="py-name">get_nodes</tt><tt class="py-op">(</tt><tt class="py-string">'keywords/kw'</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">root</tt><tt class="py-op">.</tt><tt class="py-name">get_nodes</tt><tt class="py-op">(</tt><tt class="py-string">'kw'</tt><tt class="py-op">)</tt> </tt>
<a name="L40"></a><tt class="py-lineno">40</tt>  <tt class="py-line">        <tt class="py-name">source_type</tt> <tt class="py-op">=</tt> <tt class="py-name">root</tt><tt class="py-op">.</tt><tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'type'</tt><tt class="py-op">]</tt> </tt>
<a name="L41"></a><tt class="py-lineno">41</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">source_type</tt> <tt class="py-op">==</tt> <tt class="py-string">'resource'</tt><tt class="py-op">:</tt> </tt>
<a name="L42"></a><tt class="py-lineno">42</tt>  <tt class="py-line">            <tt class="py-name">source_type</tt> <tt class="py-op">+=</tt> <tt class="py-string">' file'</tt> </tt>
<a name="L43"></a><tt class="py-lineno">43</tt>  <tt class="py-line">        <tt id="link-13" class="py-name" targets="Variable robotide.ui.tree.TestDataHandler.keywords=robotide.ui.tree.TestDataHandler-class.html#keywords"><a title="robotide.ui.tree.TestDataHandler.keywords" class="py-name" href="#" onclick="return doclink('link-13', 'keywords', 'link-13');">keywords</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt> <tt class="py-name">_XMLKeywordContent</tt><tt class="py-op">(</tt><tt class="py-name">node</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-14', 'name', 'link-12');">name</a></tt><tt class="py-op">,</tt> <tt class="py-name">source_type</tt><tt class="py-op">)</tt> </tt>
<a name="L44"></a><tt class="py-lineno">44</tt>  <tt class="py-line">                     <tt class="py-keyword">for</tt> <tt class="py-name">node</tt> <tt class="py-keyword">in</tt> <tt class="py-name">kw_nodes</tt> <tt class="py-op">]</tt> </tt>
<a name="L45"></a><tt class="py-lineno">45</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-15" class="py-name"><a title="robotide.ui.tree.TestDataHandler.keywords" class="py-name" href="#" onclick="return doclink('link-15', 'keywords', 'link-13');">keywords</a></tt><tt class="py-op">,</tt> <tt class="py-name">root</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name" targets="Variable robotide.editor.editors.EditorPanel.doc=robotide.editor.editors.EditorPanel-class.html#doc"><a title="robotide.editor.editors.EditorPanel.doc" class="py-name" href="#" onclick="return doclink('link-16', 'doc', 'link-16');">doc</a></tt> </tt>
</div></div><a name="L46"></a><tt class="py-lineno">46</tt>  <tt class="py-line"> </tt>
<a name="L47"></a><tt class="py-lineno">47</tt>  <tt class="py-line"> </tt>
<a name="LibrarySpec"></a><div id="LibrarySpec-def"><a name="L48"></a><tt class="py-lineno">48</tt> <a class="py-toggle" href="#" id="LibrarySpec-toggle" onclick="return toggle('LibrarySpec');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="robotide.spec.xmlreaders.LibrarySpec-class.html">LibrarySpec</a><tt class="py-op">(</tt><tt class="py-base-class">Spec</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LibrarySpec-collapsed" style="display:none;" pad="++" indent="++++"></div><div id="LibrarySpec-expanded"><a name="L49"></a><tt class="py-lineno">49</tt>  <tt class="py-line"> </tt>
<a name="LibrarySpec.__init__"></a><div id="LibrarySpec.__init__-def"><a name="L50"></a><tt class="py-lineno">50</tt> <a class="py-toggle" href="#" id="LibrarySpec.__init__-toggle" onclick="return toggle('LibrarySpec.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.spec.xmlreaders.LibrarySpec-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">args</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LibrarySpec.__init__-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="LibrarySpec.__init__-expanded"><a name="L51"></a><tt class="py-lineno">51</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-17" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-17', 'name', 'link-12');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_get_library_name</tt><tt class="py-op">(</tt><tt id="link-18" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-18', 'name', 'link-12');">name</a></tt><tt class="py-op">)</tt> </tt>
<a name="L52"></a><tt class="py-lineno">52</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-19" class="py-name" targets="Variable robotide.controller.settingcontrollers.ImportController.args=robotide.controller.settingcontrollers.ImportController-class.html#args,Variable robotide.controller.stepcontrollers.StepController.args=robotide.controller.stepcontrollers.StepController-class.html#args"><a title="robotide.controller.settingcontrollers.ImportController.args
robotide.controller.stepcontrollers.StepController.args" class="py-name" href="#" onclick="return doclink('link-19', 'args', 'link-19');">args</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-20" class="py-name"><a title="robotide.controller.settingcontrollers.ImportController.args
robotide.controller.stepcontrollers.StepController.args" class="py-name" href="#" onclick="return doclink('link-20', 'args', 'link-19');">args</a></tt><tt class="py-op">)</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">2</tt> <tt class="py-keyword">and</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-21" class="py-name"><a title="robotide.controller.settingcontrollers.ImportController.args
robotide.controller.stepcontrollers.StepController.args" class="py-name" href="#" onclick="return doclink('link-21', 'args', 'link-19');">args</a></tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt> <tt class="py-name">basestring</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt id="link-22" class="py-name"><a title="robotide.controller.settingcontrollers.ImportController.args
robotide.controller.stepcontrollers.StepController.args" class="py-name" href="#" onclick="return doclink('link-22', 'args', 'link-19');">args</a></tt><tt class="py-op">[</tt><tt class="py-op">-</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">upper</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-string">'WITH NAME'</tt><tt class="py-op">:</tt> </tt>
<a name="L53"></a><tt class="py-lineno">53</tt>  <tt class="py-line">            <tt id="link-23" class="py-name"><a title="robotide.controller.settingcontrollers.ImportController.args
robotide.controller.stepcontrollers.StepController.args" class="py-name" href="#" onclick="return doclink('link-23', 'args', 'link-19');">args</a></tt> <tt class="py-op">=</tt> <tt id="link-24" class="py-name"><a title="robotide.controller.settingcontrollers.ImportController.args
robotide.controller.stepcontrollers.StepController.args" class="py-name" href="#" onclick="return doclink('link-24', 'args', 'link-19');">args</a></tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-op">-</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L54"></a><tt class="py-lineno">54</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L55"></a><tt class="py-lineno">55</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name"><a title="robotide.ui.tree.TestDataHandler.keywords" class="py-name" href="#" onclick="return doclink('link-25', 'keywords', 'link-13');">keywords</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-26" class="py-name"><a title="robotide.editor.editors.EditorPanel.doc" class="py-name" href="#" onclick="return doclink('link-26', 'doc', 'link-16');">doc</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_init_from_library</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-27" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-27', 'name', 'link-12');">name</a></tt><tt class="py-op">,</tt> <tt id="link-28" class="py-name"><a title="robotide.controller.settingcontrollers.ImportController.args
robotide.controller.stepcontrollers.StepController.args" class="py-name" href="#" onclick="return doclink('link-28', 'args', 'link-19');">args</a></tt><tt class="py-op">)</tt> </tt>
<a name="L56"></a><tt class="py-lineno">56</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-op">(</tt><tt class="py-name">ImportError</tt><tt class="py-op">,</tt> <tt class="py-name">DataError</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">err</tt><tt class="py-op">:</tt> </tt>
<a name="L57"></a><tt class="py-lineno">57</tt>  <tt class="py-line">            <tt class="py-name">specfile</tt> <tt class="py-op">=</tt> <tt id="link-29" class="py-name"><a title="robotide.utils" class="py-name" href="#" onclick="return doclink('link-29', 'utils', 'link-8');">utils</a></tt><tt class="py-op">.</tt><tt id="link-30" class="py-name" targets="Function robotide.utils.find_from_pythonpath()=robotide.utils-module.html#find_from_pythonpath"><a title="robotide.utils.find_from_pythonpath" class="py-name" href="#" onclick="return doclink('link-30', 'find_from_pythonpath', 'link-30');">find_from_pythonpath</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-31" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-31', 'name', 'link-12');">name</a></tt> <tt class="py-op">+</tt> <tt class="py-string">'.xml'</tt><tt class="py-op">)</tt> </tt>
<a name="L58"></a><tt class="py-lineno">58</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="robotide.ui.tree.TestDataHandler.keywords" class="py-name" href="#" onclick="return doclink('link-32', 'keywords', 'link-13');">keywords</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-33" class="py-name"><a title="robotide.editor.editors.EditorPanel.doc" class="py-name" href="#" onclick="return doclink('link-33', 'doc', 'link-16');">doc</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_init_from_specfile</tt><tt class="py-op">(</tt><tt class="py-name">specfile</tt><tt class="py-op">)</tt> </tt>
<a name="L59"></a><tt class="py-lineno">59</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="robotide.ui.tree.TestDataHandler.keywords" class="py-name" href="#" onclick="return doclink('link-34', 'keywords', 'link-13');">keywords</a></tt><tt class="py-op">:</tt> </tt>
<a name="L60"></a><tt class="py-lineno">60</tt>  <tt class="py-line">                <tt class="py-name">msg</tt> <tt class="py-op">=</tt> <tt class="py-string">'Importing test library "%s" failed'</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-35" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-35', 'name', 'link-12');">name</a></tt> </tt>
<a name="L61"></a><tt class="py-lineno">61</tt>  <tt class="py-line">                <tt id="link-36" class="py-name"><a title="robotide.publish.messages.RideLogException" class="py-name" href="#" onclick="return doclink('link-36', 'RideLogException', 'link-6');">RideLogException</a></tt><tt class="py-op">(</tt><tt id="link-37" class="py-name" targets="Method robotide.context.logger.Logger.message()=robotide.context.logger.Logger-class.html#message,Method robotide.contrib.testrunner.SocketListener.SocketListener.message()=robotide.contrib.testrunner.SocketListener.SocketListener-class.html#message"><a title="robotide.context.logger.Logger.message
robotide.contrib.testrunner.SocketListener.SocketListener.message" class="py-name" href="#" onclick="return doclink('link-37', 'message', 'link-37');">message</a></tt><tt class="py-op">=</tt><tt class="py-name">msg</tt><tt class="py-op">,</tt> <tt class="py-name">exception</tt><tt class="py-op">=</tt><tt class="py-name">err</tt><tt class="py-op">,</tt> <tt class="py-name">level</tt><tt class="py-op">=</tt><tt class="py-string">'WARN'</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-38" class="py-name"><a title="robotide.pluginapi.plugin.Plugin.publish
robotide.publish
robotide.publish.messages.RideMessage.publish
robotide.publish.publisher.Publisher.publish" class="py-name" href="#" onclick="return doclink('link-38', 'publish', 'link-5');">publish</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L62"></a><tt class="py-lineno">62</tt>  <tt class="py-line"> </tt>
<a name="LibrarySpec._init_from_library"></a><div id="LibrarySpec._init_from_library-def"><a name="L63"></a><tt class="py-lineno">63</tt> <a class="py-toggle" href="#" id="LibrarySpec._init_from_library-toggle" onclick="return toggle('LibrarySpec._init_from_library');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.spec.xmlreaders.LibrarySpec-class.html#_init_from_library">_init_from_library</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">,</tt> <tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LibrarySpec._init_from_library-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="LibrarySpec._init_from_library-expanded"><a name="L64"></a><tt class="py-lineno">64</tt>  <tt class="py-line">        <tt class="py-name">lib</tt> <tt class="py-op">=</tt> <tt class="py-name">RobotTestLibrary</tt><tt class="py-op">(</tt><tt id="link-39" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-39', 'name', 'link-12');">name</a></tt><tt class="py-op">,</tt> <tt id="link-40" class="py-name"><a title="robotide.controller.settingcontrollers.ImportController.args
robotide.controller.stepcontrollers.StepController.args" class="py-name" href="#" onclick="return doclink('link-40', 'args', 'link-19');">args</a></tt><tt class="py-op">)</tt> </tt>
<a name="L65"></a><tt class="py-lineno">65</tt>  <tt class="py-line">        <tt id="link-41" class="py-name"><a title="robotide.ui.tree.TestDataHandler.keywords" class="py-name" href="#" onclick="return doclink('link-41', 'keywords', 'link-13');">keywords</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt id="link-42" class="py-name"><a title="robotide.spec.iteminfo.LibraryKeywordInfo" class="py-name" href="#" onclick="return doclink('link-42', 'LibraryKeywordInfo', 'link-10');">LibraryKeywordInfo</a></tt><tt class="py-op">(</tt><tt class="py-name">kw</tt><tt class="py-op">)</tt> <tt class="py-keyword">for</tt> <tt class="py-name">kw</tt> <tt class="py-keyword">in</tt> <tt class="py-name">lib</tt><tt class="py-op">.</tt><tt class="py-name">handlers</tt><tt class="py-op">.</tt><tt class="py-name">values</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L66"></a><tt class="py-lineno">66</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-43" class="py-name"><a title="robotide.ui.tree.TestDataHandler.keywords" class="py-name" href="#" onclick="return doclink('link-43', 'keywords', 'link-13');">keywords</a></tt><tt class="py-op">,</tt> <tt class="py-name">lib</tt><tt class="py-op">.</tt><tt id="link-44" class="py-name"><a title="robotide.editor.editors.EditorPanel.doc" class="py-name" href="#" onclick="return doclink('link-44', 'doc', 'link-16');">doc</a></tt> </tt>
</div><a name="L67"></a><tt class="py-lineno">67</tt>  <tt class="py-line"> </tt>
<a name="LibrarySpec._get_library_name"></a><div id="LibrarySpec._get_library_name-def"><a name="L68"></a><tt class="py-lineno">68</tt> <a class="py-toggle" href="#" id="LibrarySpec._get_library_name-toggle" onclick="return toggle('LibrarySpec._get_library_name');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="robotide.spec.xmlreaders.LibrarySpec-class.html#_get_library_name">_get_library_name</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">name</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LibrarySpec._get_library_name-collapsed" style="display:none;" pad="++" indent="++++++++"></div><div id="LibrarySpec._get_library_name-expanded"><a name="L69"></a><tt class="py-lineno">69</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">exists</tt><tt class="py-op">(</tt><tt id="link-45" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-45', 'name', 'link-12');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L70"></a><tt class="py-lineno">70</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt id="link-46" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-46', 'name', 'link-12');">name</a></tt> </tt>
<a name="L71"></a><tt class="py-lineno">71</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-47" class="py-name"><a title="robotide.contrib.testrunner.TestSuiteTreeCtrl.TreeNode.name
robotide.contrib.testrunner.runprofiles.CustomScriptProfile.name
robotide.contrib.testrunner.runprofiles.PybotProfile.name
robotide.controller.settingcontrollers.ImportController.name
robotide.controller.settingcontrollers.MetadataController.name
robotide.controller.settingcontrollers.VariableController.name
robotide.controller.stepcontrollers.ForLoopStepController.name
robotide.controller.tags.Tag.name
robotide.editor.editors.EditorPanel.name
robotide.publish.messages.name" class="py-name" href="#" onclick="return doclink('link-47', 'name', 'link-12');">name</a></tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">,</tt> <tt class="py-string">''</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L72"></a><tt class="py-lineno">72</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="robotide-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://code.google.com/p/robotframework-ride">RIDE</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Apr 13 15:09:55 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
